Forum


HomeHomePublicPublicDevelopmentDevelopmentWindow.Open - seems redirectedWindow.Open - seems redirected
Previous
 
Next
New Post
7/19/2017 4:29 AM
 

I am trying this Javascript in my page header :

 
  window.open("http:\\Google.com");

 

However it open my default page instead :(

 

Something to do with redirects I guess..

 
New Post
7/19/2017 4:54 AM
 

Hi Richard

What is the objective you are trying to achieve?

DNN may have a better route e.g. if you are trying to open a specific site 

e.g. I have a site New Driver http://www.newdriverschools.co.uk/home/book_online.aspx

There are buttons to go to geographical regions - these links are to pages on the site e.g. AL goes to http://www.newdriverschools.co.uk/home/book_online/driving_lessons_in_AL.aspx

Now BH goes to the associated page for BH, but that page redirects to http://www.newdriverschools.co.uk/bournemouth a totally separate website (DNN Portal)

I have another site where we have onsite testimonials, I am talking to my client about "bouncing" the page to his tripadvisor page

All the best

 

 

Dave

 

 

 

 

 
New Post
7/19/2017 5:00 AM
 

Hi Dave

what I am trying to achieve is - 

A page that accepts several parameters, one of which will be a URL to another website.

One the page has done its own thing, the page passed as a parameter then needs to automatically open in a new browser window.

 

 

 

 

 
New Post
7/19/2017 5:52 AM
 

I am thinking maybe to have teh user click a button to launch the page like you say - then I could have options like - in a new window - and maybe teh browser will less likely block it as a popup

 
New Post
7/19/2017 6:19 AM
 

If you have a limited set of websites then the button option works

Here is the HTML to get you started

{h2}{span style="font-size: 1.2em;"}Please click on your post code area button{/span}{/h2}
{p} {/p}
{p}{a class="djh_button blue" href="/home/book_online/driving_lessons_in_AL.aspx?pricecode=B"}AL{/a} - {a class="djh_button blue" href="/home/book_online/driving_lessons_in_BA.aspx?pricecode=D"}BA{/a}{/p}
{p}and Could be{/p}
{h2}{span style="font-size: 1.2em;"}Please click on your website button{/span}{/h2}
{p} {/p}
{p}{a class="djh_button blue" href="http://www.bbc.co.uk"}BBC{/a} - {a class="djh_button blue" href="http://www.google"}Google{/a}{/p}
{p} {/p}
{p}add {span}target="_blank" to open a new tab and not lose the original site - not an issue for my New Driver Site{/span}{/p}
{p}{a href="www.bbc.co.uk" target="_blank"}BBC{/a}

I replaced the < and > with { and } because I lost the "code" when I saved :-(

If you need to collect other information and you are being paid to build the site then I would recommend Data Springs Dynamic Forms probably the best $200ish you can spend

I've built some very powerful websites with this "contact form" because it has some amazing features

All the best

 

Dave

P.S.

Dynamic Forms allows you to pass parameters to and from a page, a URL, Cookie and Session variables - AMAZING :-)

 

 

 

 

 
Previous
 
Next
HomeHomePublicPublicDevelopmentDevelopmentWindow.Open - seems redirectedWindow.Open - seems redirected



Try FREE
30 days money back guaranteed