View Full Version : Quick HTML Question
djyox
January 25th, 2004, 02:02
For a link, I need to know how to make it pop up, and also have no url, or nav bar...also how to size it....
And also, how do you nav in HTML?
like Back, Forward, Close
Thanks for your help, I know it was easy, but I am dumb. :doh!:
Visit my site: www.kartforum.com
djyox
January 25th, 2004, 06:02
TTT
keith
January 25th, 2004, 11:41
TTT?
if someone wants to answer, they will.
Loon
January 27th, 2004, 10:45
<script language="javascript">
<!--
function view(url,name,stuff)
{
popupWin=window.open(url,name,stuff);
popupWin.opener.top.name="opener";
popupWin.focus();
}
-->
</script>
<a href="javascript:view('yourpage.html','popup','scrollbars=yes,resi zable=no,width=220,height=400')">click to open popup</a>
Resize as you wish :)
To 'navigate in HTML' i'm not 100% sure what you mean, but you can use javascript:history for example
<a href="javascript:history.go(-1)">go back one page</a>
<a href="javascript:history.go(-2)">go back two pages</a>
<a href="javascript:history.go(1)">go forward one page</a>
etc ..
In order for people to move forward, they must already have the page loaded into their cache, so must have visited it already, as obviously it can't predict what page should be next.
ARRGH! i hate vB for always doing that ;\ - remove the space in "java script"
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.