FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

New Window

 


Kurosaki-Ichigo
I want to know what to put in a
Code:
<a href="url"></a>
to make a page popup with a fixed size and the url box at the top removed including the back forward and file - edit buttons. Basicly what is left is the minimize maximize and close buttons. How do i do this ?
Stubru Freak
You need javascript for that.

Check the window.open function.
aningbo
it's just being posted by kirii. credit goes to kirii though he probably copy and paste from some website.

Quote:
<!-- TWO STEPS TO INSTALL POPUP WINDOW:

1. Paste the first into the HEAD of your HTML document
2. Use the code to open the popup page on your site -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">


<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,men ubar=0,resizable=0,width=700,height=700');");
}
// End -->
</script>


<!-- STEP TWO: Use the following button code for the new window -->

<form>
<input type=button value="Open the Popup Window" onClick="javascript:popUp('http://nguoithuongoi.info')">
</form>

<!-- Script Size: 0.73 KB -->
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.