queensvilleantiquemall Posted December 8, 2006 Share Posted December 8, 2006 I would like to make a window pop up on my index page( like an add but one to show the holiday hours) i was wondering if there was an easy way of doing this??thanks! Link to comment Share on other sites More sharing options...
paramasivan Posted December 8, 2006 Share Posted December 8, 2006 <script type="text/javascript">window.open('holiday_hours.php','new');</script>will do Link to comment Share on other sites More sharing options...
MrAdam Posted December 9, 2006 Share Posted December 9, 2006 that won't really help him. the above code from paramasivan is javascript (obviouslly) but if you were to place that on your page, it will open the window as you load up the page. the easiest way to have a link open a new window is: <a target="_blank" href="link_url">link text</a> if you want to customize the new window (ie. specify the height, width, position, etc.) you will want to use java script: http://www.w3schools.com/js/tryit.asp?file...s_openallwindow Link to comment Share on other sites More sharing options...
tantachar07 Posted December 10, 2006 Share Posted December 10, 2006 You should post this in the Javascript forum that won't really help him. the above code from paramasivan is javascript (obviouslly) but if you were to place that on your page, it will open the window as you load up the page. the easiest way to have a link open a new window is:<a target="_blank" href="link_url">link text</a> if you want to customize the new window (ie. specify the height, width, position, etc.) you will want to use java script: http://www.w3schools.com/js/tryit.asp?file...s_openallwindow The url was: http://www.w3schools.com/js/tryit.asp?file...s_openallwindowWhen I tried to edit the "width" and the "height", I clicked on the popup again and the size didn't change. Link to comment Share on other sites More sharing options...
holmedwa04 Posted December 10, 2006 Share Posted December 10, 2006 You cant just edit the code and expect it to work, you need to click the:Edit the text and Click Me...button, before you try click the other one, if you get me? Link to comment Share on other sites More sharing options...
MrAdam Posted December 10, 2006 Share Posted December 10, 2006 .. he asked in this forum. wouldn't be much good to him if i'd posted it in the javascript forum. and half of it is just HTML. Link to comment Share on other sites More sharing options...
queensvilleantiquemall Posted December 10, 2006 Author Share Posted December 10, 2006 well 1) im a women2) the code that was given to me first, did infact work so thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now