I know how to open links in new windows using <a href="#" target="_blank"></a> but how can I make it open a new window so that it only shows the address bar.. Line Habbo Hotel does for their client. Example below.
![]()
I know how to open links in new windows using <a href="#" target="_blank"></a> but how can I make it open a new window so that it only shows the address bar.. Line Habbo Hotel does for their client. Example below.
![]()
<!-- 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">
<!-- Idea by: Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=1,statusbar=0,men ubar=0,resizable=1,width=500,height=500,left = 470,top = 200');");
}
// End -->
</script>
<!-- STEP TWO: Use the following link to open the new window -->
<A HREF="javascript:popUp('popup')">Open the Popup Window</A>
Got it off a popup generator. Hope its useful
Lew.
Take a look on dynamic drive as well![]()
Thanks Lew.
EDIT: How can I make it allow php and html?
Last edited by Shibby-Shabs; 17-10-2009 at 12:37 PM.
You make the .php/.html file serperatly... it only opens an external page.
Lew.
I'm not quite sure what you mean, I need it to open a HTML file.
EDIT: Never mind, mis read ur question ;]
Want to hide these adverts? Register an account for free!