/    Sign up×
Community /Pin to ProfileBookmark

New window popup without Javascript…

Is it possible to create a popup window without using javascript? I’m writing a ColdFusion app that needs to run with client scripting turned off. Unfortunately, one of the major functions of the app requires my ability to create a popup window from a button click event.

Any ideas? Thanks in advance!

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@requestcodeSep 29.2004 — Try this:

<a href="http://www.mysite.com" target="_blank">Click Me</a>
Copy linkTweet thisAlerts:
@russellSep 29.2004 — No JavaScript, no events.

However, you can open a link in a new window like this:

<A href="myPage.htm" target="newWindow">click me</a>

Wrapping the <A> Tag around an image to simulate a button might solve your problem. The new window will have the same attributes and history list as the originating window
Copy linkTweet thisAlerts:
@NanwedarauthorSep 29.2004 — Oops, I didn't fully explain my dilemna. Here's the javascript function I currently have in place (that needs to go):

function preview(pageID,state,navID)

{

if(navID){

var urlPop = "someURL";

}

else {

var urlPop = "someOtherURL";

}

//OPEN THE POPUP WINDOW

win2 = window.open(urlPop, "");

win2.blur();

win2.focus();

//REFRESH THE CALLING PAGE

var itemlocation = "RefreshThisPageURL";

window.location=itemlocation;

}

So basically the button click triggers a new window to pop up, passing it form data to dynamically generate the URL for the popup window. At the same time, the calling page submits to itself using the same form fields to build the page again.

Is this possible to do without JS? Thanks again!
Copy linkTweet thisAlerts:
@KorSep 30.2004 — AFAIK HTML action href can not open more than a single new page, thus it can not open a new page and send data and refresh the self page all the same time.

On the other hand a server-side application can not open more than a single new generated page, that means it can not open a page and a pop-up same time.

I think that you can not achieve your target without javascript...

Maybe you may re-consider the pop-up requirement.
×

Success!

Help @Nanwedar spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...