target="_blank" for GoToURLWindow

For developers using the Construct 2 Javascript SDK

Post » Wed Jan 30, 2013 7:01 pm

Does anyone know how to make the GoToURLWindow have a feature that is target="_blank". Currently it does open a new tab but I want it to have the target="_blank" attribute. I open up the c2runtime.js and on line 9956 it has GoToURLWindow but there is also various LoadURL and such. I plan on going in and manually changing maybe a few lines to make it target="_blank". If any javascript coder can help me with this it be nice.

I google these two links, not sure if they be helpful.

http://stackoverflow.com/questions/1574008/how-to-simulate-target-blank-in-javascript

http://snipplr.com/view/918/

-Thanks
B
7
S
2
G
3
Posts: 39
Reputation: 2,612

Post » Thu Jan 31, 2013 12:55 am

Why do you need this if it already opens a new tab?
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Thu Jan 31, 2013 4:19 am

So that the pop-up blocker doesn't work. lol.
B
7
S
2
G
3
Posts: 39
Reputation: 2,612

Post » Thu Jan 31, 2013 4:22 am

Kids and non techy people might not know how to disable it and such, so I must facilitate there fun time. Plus its not a pop-up they clicked it to go to the site.
B
7
S
2
G
3
Posts: 39
Reputation: 2,612


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests