Is it possible to set the target of an anchor tag to a webview tag?

Viewed 60

I want to open some links in my HTML in the background. I would like to open them in a hidden webview tag. I have tried to name the webview tag like so

<webview id="bgview" name="background-view" ></webview>

and then add a

<a href="some_link" target="background-view">

It doesn't work. Is there a simple way to accomplish this? Maybe a javascript function to wrap around the link? I also tried

<a href="javascript:document.getElementById(bgview).loadURL('some_link');">
0 Answers
Related