Jan Kocon
Jan Kocon

Reputation: 3

HTTP address with Javascript inside address

I'm looking for very specific way to open links or create shortcuts to open links with already loaded Javascript on website.

For example. I have portal to which I have link:

example.com/text/nu#action:projmgr.text&id123456 but on site there is gear icon which have to be activated and then selected Export to Excel (Data Only) which is a JavaScript link like javascript:text.text.exportToFile('npt.(...)'500','text.text').

I have like 50 lists to export by clicking on the first link and then navigate through those steps. Is it possible to create shortcuts to Javascript?

Thanks in advance.

Upvotes: 0

Views: 48

Answers (1)

Quentin
Quentin

Reputation: 943516

No.

It would be a enormous (XSS/CSRF) security problem if a URL could be constructed which caused a browser to visit a URL and execute arbitrary JavaScript or follow links.

Consider using a tool like Selenium or PhantomJS instead.

Upvotes: 1

Related Questions