Skip to main content
gamedev.net
🔒 Locked

[web] JavaScript Open Function, as equivalent css?

Started by Genjix 7 replies 600+ views
Original Post
Genjix
Genjix

	/*kindly opens a new window with name nombre and all desired params*/
	function Open(window_link)
	{
		return !window.open(window_link,'_blank',"width=600,height=600,toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
	}

	...

	ABOUT
How could I accomplish this, without &#106avascript?
Rob Loach
Rob Loach
Here's the code I use in my projects pages.



Why wouldn't you want to use &#106avascript? It's pretty much a standard now among internet browsers. The only browsers that don't have it are <i>very</i> old browsers and some internet phone browsers (but those have small screens anyway).
Rob Loach [Website] [Projects] [
Genjix
Genjix
well, i was just wondering if there would be a nicer way of doing it, such as css.
aidan_walsh
aidan_walsh
Quote:
Original post by Genjix
well, i was just wondering if there would be a nicer way of doing it, such as css.

I think you're missing the point of CSS... Its for defining how the elements should be styled for rendering, its not a scripting language.
www.aidanwalsh(.net)(.info)
Genjix
Genjix
i understand the point and difference between css and &#106avascript. does it not seem unreasonable that in a style sheet's I cannot define how links are opened?
evolutional
evolutional
CSS = Cascading style Sheets
JavaScript

CSS is for styling the elements in the page and &#106avascript is for scripting them. CSS wasn't designed for the sort of thing you're trying to achieve.
Pipo DeClown
Pipo DeClown
Quote:
Original post by Genjix
i understand the point and difference between css and &#106avascript. does it not seem unreasonable that in a style sheet's I cannot define <u>how links are opened</u>?<!--QUOTE--></td></tr></table></blockquote><!--/QUOTE--><!--ENDQUOTE--><br/><br/>style sheets define <u>how links are displayed</u>.
Prototype
Prototype
What could be nicer than &#106avascript?<br/>I still think it's wonderful browsers have an embedded programming language, especially one as good as &#106avascript.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.