Hey guys,
I've been poking through w3schools using their online code tryout pages. I started having fun manipulating browser pages in new windows. I figured out how to open a new window with a button.
Surely you can do the same with a hyperlink however i'm finding this very difficult. Can anyone help? Thank you.
[CODE=javascript]<html>
<head>
<script type="text/javascript">
function open_win()
{
window.open("ht tp://www.w3schools.c om","_blank","t oolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=400, height=400")
}
</script>
</head>
<body>
<form>
<input type="button", "_blank", value="Open Window" onclick="open_w in()">
<a href", "_blank", value="Open Window" onclick="open_w in()">
</form>
</body>
</html>[/CODE]
I've been poking through w3schools using their online code tryout pages. I started having fun manipulating browser pages in new windows. I figured out how to open a new window with a button.
Surely you can do the same with a hyperlink however i'm finding this very difficult. Can anyone help? Thank you.
[CODE=javascript]<html>
<head>
<script type="text/javascript">
function open_win()
{
window.open("ht tp://www.w3schools.c om","_blank","t oolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=400, height=400")
}
</script>
</head>
<body>
<form>
<input type="button", "_blank", value="Open Window" onclick="open_w in()">
<a href", "_blank", value="Open Window" onclick="open_w in()">
</form>
</body>
</html>[/CODE]
Comment