Page 1 of 1

navigateTo link

Posted: Thu Dec 12, 2013 3:38 pm
by Ivan6481911

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!


navigateTo link

Posted: Thu Dec 12, 2013 3:50 pm
by Maryna Brodina

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


navigateTo link

Posted: Thu Dec 12, 2013 3:56 pm
by Ivan6481911

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


navigateTo link

Posted: Thu Dec 12, 2013 4:33 pm
by Maryna Brodina

navigateTo link

Posted: Thu Dec 12, 2013 4:37 pm
by Ivan6481911

:) Thanks a lot, Marina!


navigateTo link

Posted: Wed Apr 08, 2015 1:38 am
by Nicklas

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()');


navigateTo link

Posted: Wed Apr 08, 2015 7:24 am
by Mark Wong

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