Ivan6481911
Posts: 0
Joined: Tue Dec 10, 2013 11:25 am

navigateTo link

Hello.
How can I open link from javascript code on button click? I have URL as local storage variable, so I have to do it in code, rather than EVENT - Navigate to link.
Thanks!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

navigateTo link

Hello! Please take a look here http://docs.appery.io/javascript-api/...

Ivan6481911
Posts: 0
Joined: Tue Dec 10, 2013 11:25 am

navigateTo link

Thanks, but I need to open browser with URL... Any ideas?

Ivan6481911
Posts: 0
Joined: Tue Dec 10, 2013 11:25 am

navigateTo link

:) Thanks a lot, Marina!

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

navigateTo link

Hello!
I tried to understand the links you gave here Maryna, but I don't understand. I tried something like this:
EVENT CLICK RUN JAVASCRIPT

var one = appery("LinkFromInput").val();

window.open('one');

I also tried without the variable:

window.open('appery("LinkFromInput").val()');

Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

navigateTo link

Try this!
function myFunction() {
window.open(one);
}
(You should not put code'example'/code for one and your URL should contain http/a href="https://" rel="nofollow"https:///a)
You may want to check out this website http://www.w3schools.com/jsref/met_wi... which tells your further information such as adjusting the screen size or with toolbars,etc

Return to “Issues”