Click to See Complete Forum and Search --> : 2 question


pelegk1
01-29-2003, 07:26 AM
1) can i in html/javascript open something like a color picker and get the color that was choosen?
2)can i open a new window from a parent window, and call to a function that's in the "som window+params?
is it possible in the opposite direction too?
thnaks in advance
Peleg

Dan Drillich
01-29-2003, 09:36 AM
Here is an example for your question 2a -


<html><head><title>Getting and using a window reference</title>
<script language="JavaScript">
<!-- hide me

// open a new window and get a reference to it
var new_window = window.open("http://www.iwon.com","html_name","width=200,height=200");


// show me -->
</script>
</head>
<body>

<h1>A new window has been opened and moved to the background.</h1>
<a href="#" onMouseOver="new_window.focus();">Bring it forward</a><br>
<a href="#" onMouseOver="new_window.blur();">Blur it</a><br>


</body>
</html>


Cheers,
Dan