Forum Moderators: open

Message Too Old, No Replies

Windows Attributes: NO menubars, toolbars, titlebars

Onclick OR Action Page

         

jnscollier

2:41 am on Jun 8, 2006 (gmt 0)

10+ Year Member



I have a basic form that has an action page and target = "_blank". Once the new window pops up, I'd like to be able to remove the titlebar, menubar, toolbar.... maybe with an onload event or smthg on the action page... I am not sure.
I've searched online and they show how to use the window.open function, however, I dont know if there is maybe an onload event for the action page or if i need to redo my form... or what...

Here's my form...

<form name="form1" action="action.html" target="_blank" method="get">
<input type="text" name="YOUR_ID_HERE" value = "YOUR_ID_HERE">
<input type="text" name="INSERT_FIRST" value = "INSERT_FIRST">
<input type="text" name="INSERT_LAST" value = "INSERT_LAST">
<input type="text" name="YOUR_DOMAIN_NAME" value = "YOUR_DOMAIN_NAME">
<br>
<input type = "submit" value = "Steps To Getting Started!" style="background-color:black;color:white;font-family:arial;font-size:12px; font-weight:bold;"/>
</form>

*****Sammy******

adni18

12:30 am on Jun 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On the _blank opened window, spawn a new popup with no titlebars and all, then write content to it, then close the original popup window.

jnscollier

12:35 am on Jun 9, 2006 (gmt 0)

10+ Year Member



what do you mean spawn? I'm not exactly sure what you mean... can you please explain?

Thanks!
*~sammy~*

adni18

12:43 am on Jun 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



spawn = open

okay, let's call the main page (the one with the form on it) "MainPage" (just for our reference).

Now, when the user submits the form data, the result opens in the new window "NewWin" for our reference.

"NewWin" loads its own content, along with a javascript that opens a new window "MinimalWin" (using window.open), writes NewWin's content to the new MinimalWin, then closes NewWin.

This solution will work, even if the user doesn't have javascript working (the result of NewWin will just stay in NewWin, it just won't be transferred to MinimalWin).

Sorry if I'm not making sense, I can write you some code if you still don't get it.

jnscollier

2:54 pm on Jun 9, 2006 (gmt 0)

10+ Year Member



got it! THX!

rocknbil

6:06 pm on Jun 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sammy, you can't control the window with target="_blank." It will open a default browser window, default being whatever controls the user has set.

The solution was posted in your other thread [webmasterworld.com].

jnscollier

6:25 pm on Jun 9, 2006 (gmt 0)

10+ Year Member



ya... im redo'ing my form to do it via javascript instead of the target.. thanks!