Jump to content

New Window (music)

The Sea King

Recommended Posts

Guest FirefoxRocks

This is done using JavaScript. I think it is done like this, but I am no expert so I might be wrong. I assume that you want to click on a link to open the window, so here is the code that I think will work:

<a href="#" onclick="window.open('jukebox.html','height=100,location=no,menubar=no,resizable=no,scrollbars=no,toolbar=no,width=400','false')"> Jukebox </a>

The code is pretty self-explanatory but you can look at http://w3schools.com/htmldom/met_win_open.asp if you need more help. Note that some popup blockers will block this window.

Link to comment
Share on other sites

Thank you! :)

My Code (Saved untill I do it)
<html><head><script type="text/javascript">function open_win(){window.open("http://www.w3schools.com","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=400, height=100")}</script></head><body><form><input type="button" value="Listen to Music" onclick="open_win()"></form></body></html>
Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...