We recently implemented a stock quote system, where a user can enter a stock symbol and it will return all sorts of financial values.
I have a template made up that displays the financial widgets, and when a user enters a ticker symbol it runs some JS with the callback url being my template. In this example, it is something like this.
https://www.stocktrades.ca/quote/?qm_symbol=AAPL
What my issue is, is the title is currently blank. When a user inputs a symbol, the page title in the browser is simply “Quote -” Instead, I want it to be “Quote – XXXX” with XXXX being the stock ticker they entered.
What is the easiest way to go about this? I know it’s probably really simple, but I am stumped
<h1>
) with the same callback.